
function callAdd(iType, iTimeOut)
{
	var currentTime = new Date();
	eval('ajax_ad_' + iType + '.location = sHome + "design/static/ad.php?id=' + iType + '&time=" + currentTime.getTime();');
	setTimeout('callAdd("' + iType + '", "' + iTimeOut + '")', iTimeOut);
}

function updateAd()
{
	var f_list = document.getElementsByTagName('iframe');   
	for (var i = 0, f; f = f_list[i]; i++) 
	{
   		if (f.id.substr(0, 4) == 'ajax')
   		{
			var currentTime = new Date();
			eval('' + f.id + '.location = sHome + "design/static/ad.php?id=' + f.id.substr(8, 1) + '&time=" + currentTime.getTime();');
   		}
	}
}